<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../common/tagInclude.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
	<base href="${basePath}" />
	<title>栏目Flash列表</title>
	<META http-equiv="content-type" content="text/html; charset=UTF-8">
	<LINK href="${basePath}styleAdmin/css/portalinabox.css" type="text/css" rel="stylesheet">		
	<meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
   <meta http-equiv="expires" content="0">
	<script type="text/javascript" src="${basePath}styleAdmin/js/prototype-1.6.0.3.js"></script>
	<script type="text/javascript">
		function edit(id){
			window.location = '${basePath}admin/flash/showUpdate?flashId='+id;
		}
		function del(id){
			if(!confirm('是否删除此栏目的Flash! \r\n\r\n                确认删除')) return;
			window.location = '${basePath}admin/flash/delete?flashId='+id;
		}
		function doQuery(){
			document.myform.jsp = "${basePath}admin/flash/list";
			document.myform.submit();
		}
</script>
</HEAD>
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
<form action="" method="get" name="myform">
<%@include file="../common/navigate.jsp" %>
<table width="96%" border="0" align="center" cellpadding="0" style="margin-top:5px;" cellspacing="0">
	<tr>
		<td valign="top">
			<!-- 搜索栏 -->
			<table width="100%" border="1" class="mainFunctionTable"  cellpadding="0" cellspacing="1">
				<tr height="25" class="pLabel">
			   		<td class="td_nwarpstyle">&nbsp;&nbsp;栏目Flash列表</td>
			 	</tr>
				<tr>
			   		<td width="100%" height="25">
			   			<table width="100%" border="0" cellspacing="1">
			     			<tr>
			       				<td>&nbsp;&nbsp;语种&nbsp;&nbsp;<select name="languageId" id="languageId">
				         				<option value="0">请选择</option>
				         				<c:forEach items="${languageInfoList }" var="languageInfo">
				         					<option value="${languageInfo.id}" <c:if test="${languageInfo.id == languageId}">selected</c:if>>${languageInfo.name }</option>
				         				</c:forEach>
			         				</select>
									&nbsp;&nbsp;栏目&nbsp;&nbsp;<select name="channelId" id="channelId">
				         				<option value="0">请选择</option>
										<c:forEach items="${channelInfoList }" var="channelInfo">
											<option value='${channelInfo.channelId}' <c:if test="${channelInfo.channelId == channelId}">selected</c:if>>${channelInfo.channelName}</option>
										</c:forEach>
			         				</select>
			       				</td>
			       				<td align="right">
			       					<a href="javascript:doQuery();"><img src="${basePath}styleAdmin/images/button/query.gif" border="0"/></a>
			       					&nbsp;&nbsp;&nbsp;&nbsp;<a href="${basePath}admin/flash/showInsert" id="lnkAdd"><img src="${basePath}styleAdmin/images/button/addNew.gif" border="0"></a>
			        			</td>
			     			</tr>
			    		</table>
			    	</td>
			   </tr>
			 </table>
		  </td>
	  </tr>
	  <tr>
	    <td>
			<table width=100% border=1 class="mainFunctionTable"  cellpadding="0" cellspacing="1" id="table_channel">
				<tr height=25 class="pLabel" align="center">
					<td width="5%" class="td_nwarpstyle" >标识</td>
					<td width="20%" class="td_nwarpstyle" >Flash名称</td>
					<td class="td_nwarpstyle">Flash地址</td>
					<td width="10%" class="td_nwarpstyle">栏目</td>
					<td width="10%" class="td_nwarpstyle">语种</td>
					<td width="10%" class="td_nwarpstyle" align="center">操作</td>
				</tr>
			</table>
			<table width=100% border=1 class="mainFunctionTable"  cellpadding="0" cellspacing="1" id="table_channel">
				<c:forEach items="${flashInfoList}" var="flashInfo" varStatus="status">
   					<c:choose>
   						<c:when test="${status.index % 2 == 0 }"><c:set var="css" value="c1" /></c:when>
   						<c:otherwise><c:set var="css" value="c2" /></c:otherwise>
   					</c:choose>
					<tr class="${css}">
						<td width="5%"   height="25" align="center"><input type="checkbox" name="flashId" value="${flashInfo.flashId}"/></td>
						<td width="20%">${flashInfo.flashName}</td>
						<td>${flashInfo.flashPath}(<a href="${flashInfo.flashPath}" target="_blank">查看</a>)</td>
						<td width="10%" align="center">${channelMap[flashInfo.channelId]}</td>
						<td width="10%" align="center">${languageMap[flashInfo.languageId]}</td>
						<td width="10%" align=center>
							<a href="javascript:edit(${flashInfo.flashId});"><img src="${basePath}styleAdmin/images/edit.gif" border="0" title="编辑"/></a>
							&nbsp;&nbsp;
							<a href="javascript:del(${flashInfo.flashId});"><img src="${basePath}styleAdmin/images/delete.gif" border="0" title="删除"/></a>
						</td>
					</tr>
				</c:forEach>
	  		</table>
		 </td>
	   </tr>
	   <tr>
		  <td height=25>
		  	<c:set var="pageURL" value="${basePath}admin/flash/list?languageId=${languageId}&channelId=${channelId}&"/>
			<%@include file="../common/page.jsp"%>
		  </td>
	  </tr>
</table>
</form>
</body>
</HTML>